function checkAll(controlCheck, buttonGroup) {
	if (buttonGroup == null || typeof buttonGroup == "undefined")
		return;
	var i;
	var checkflag = false;

	if (controlCheck.checked) {
		checkflag = true;
	}

	if (buttonGroup[0]) {
		for (i = 0; i < buttonGroup.length; i++)
			buttonGroup[i].checked = checkflag;
	} else {
		buttonGroup.checked = checkflag;
	}

	return;
}

function MO(e) {
	if (!e)
		var e = window.event;
	var S = e.srcElement;
	while (S.tagName != "TD") {
		S = S.parentElement;
	}
	S.className = "btnover";
}

function MU(e) {
	if (!e)
		var e = window.event;
	var S = e.srcElement;
	while (S.tagName != "TD") {
		S = S.parentElement;
	}
	S.className = "btnoff";
}function isEmpty(s) {	return ((s == null) || (s.length == 0))}function initCheckBoxAll() {	$("#checkAll").on('click', function() {		if ($(this).prop("checked") == true) {// 全选  			$("input[type=checkbox][name=setId]").each(function() {				$(this).attr("checked", true);			});		} else {// 取消全选  			$("input[type=checkbox][name=setId]").each(function() {				$(this).attr("checked", false);			});		}	});}var currlayerObj = null;function deleteSelectRecords(cmdString,nextCmdString){	if($("input:checked").length==0){		layer.alert('\u8bf7\u9009\u62e9\u8bb0\u5f55!', 8);		return;	}	currlayerObj = $.layer({	    shade : false,	    area : ['auto','auto'],	    dialog : {	        msg:'\u786e\u5b9a\u5220\u9664\u9009\u4e2d\u7684\u8bb0\u5f55\u4e48?',	        btns : 2, 	        type : 4,	        btn : ['\u786e\u5b9a','\u53d6\u6d88'],	        yes : function(){	        	document.myform.cmd.value = cmdString;	        	document.myform.nextCmd.value = nextCmdString;	        	document.myform.doNothing.value = "N";	        	document.myform.submit();	        },	        no : function(){cancel();}	    }	});}function cancel(){	layer.close(currlayerObj);}